package com.FindMyStuff.Model;

/**
 * Fake User class to avoid null checks
 * @author Turkey
 *
 */
public class NullUser extends User{

	public NullUser() {
		super("Null User", null, null);
	}
		
	/**
	 * Return false since this is a Fake User
	 */
	public boolean checkPassword(String password)
	{
		return false;
	}
	
	/**
	 * Return false since this is a Fake User
	 */
	public boolean isLocked()
	{
		return false;
	}

	/**
	 * Return false since this is a Fake User
	 */
	public boolean exist() {
		return false;
	}
	
	/**
	 * Checks if the user's role is an Admin
	 * @return boolean true if user is Admin
	 */
	public boolean isAdmin()
	{
		return false;
	}

}
